package org.dromara.wmscloud.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.dromara.common.mybatis.annotation.DataColumn;
import org.dromara.common.mybatis.annotation.DataPermission;
import org.dromara.wmscloud.domain.BaseWarehouse;
import org.dromara.wmscloud.domain.vo.BaseWarehouseVo;
import org.dromara.common.mybatis.core.mapper.BaseMapperPlus;

import java.util.List;
import java.util.Set;

/**
 * 仓库Mapper接口
 *
 * @author hou
 * @date 2025-04-03
 */
@Mapper
public interface BaseWarehouseMapper extends BaseMapperPlus<BaseWarehouse, BaseWarehouseVo> {
    @DataPermission({
        @DataColumn(key = "deptName", value = "dept_id"),
        @DataColumn(key = "userName", value = "user_id")
    })
    List<BaseWarehouseVo> selectNamesByCodes(@Param("warehouseCodes") Set<String> warehouseCodes);
}
